/*
 * @Author: moonwater 13812995013@163.com
 * @Date: 2025-03-05 09:27:09
 * @LastEditors: moonwater 13812995013@163.com
 * @LastEditTime: 2025-03-05 09:42:48
 * @FilePath: \盐师22Git仓库\day08\Student.java
 * @Description: Student类
 */
package day08;

public class Student extends Person {
    //1.子类可以继承父类的所有非私有成员（属性和方法）
    //2.子类可以扩展父类中没有的属性
    //子类的属性
    private String school;

    public void setSchool(String school) {
        this.school = school;
    }

    public String getSchool() {
        return school;
    }
}
